package com.xnyzc.lhy.mis.service.impl.account;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.xnyzc.lhy.common.entity.Rv;
import com.xnyzc.lhy.common.penum.EErrorCode;
import com.xnyzc.lhy.mis.entity.account.OaDAccountAdjustment;
import com.xnyzc.lhy.mis.entity.account.OaDAccountAdjustmentDetail;
import com.xnyzc.lhy.mis.entity.account.OaDAccountAdjustmentDetailInfo;
import com.xnyzc.lhy.mis.mapper.account.OaDAccountAdjustmentDetailMapper;
import com.xnyzc.lhy.mis.service.account.IOaDAccountAdjustmentDetailService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.xnyzc.lhy.order.entity.order.OaCOrderPersonal;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 司机账户调整明细表 服务实现类
 * </p>
 *
 * @author cuichaoqun
 * @since 2019-10-19
 */
@Service
public class OaDAccountAdjustmentDetailServiceImpl extends ServiceImpl<OaDAccountAdjustmentDetailMapper, OaDAccountAdjustmentDetail> implements IOaDAccountAdjustmentDetailService {
    @Autowired
    OaDAccountAdjustmentDetailMapper oaDAccountAdjustmentDetailMapper;

    @Override
    public Rv queryDateIOaDAccountAdjustmentDetail(Long adjustmentId) {

        List<OaDAccountAdjustmentDetailInfo> oaDAccountAdjustmentDetails = oaDAccountAdjustmentDetailMapper.selectAdjustmentDetailList(adjustmentId);
        return Rv.wrap(EErrorCode.success,oaDAccountAdjustmentDetails);
    }
}
